package com.ojoin.trade.supplyloan_core.web.service.impl;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.utils.TimeUtils;
import com.ojoin.trade.common.web.dao.BaseDao;
import com.ojoin.trade.common.web.service.impl.BaseServiceImpl;
import com.ojoin.trade.supplyloan_core.web.dao.TbSlStattaskRunlogDao;
import com.ojoin.trade.supplyloan_core.web.domain.TbSlStattaskRunlog;
import com.ojoin.trade.supplyloan_core.web.service.TbSlStattaskRunlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-10-27
 * Time: 下午3:45
 * To change this template use File | Settings | File Templates.
 */
@Service
public class TbSlStattaskRunlogServiceImpl extends BaseServiceImpl<TbSlStattaskRunlog> implements TbSlStattaskRunlogService {

   @Autowired
   private TbSlStattaskRunlogDao dao;
    @Override
    protected BaseDao<TbSlStattaskRunlog> getBaseDao() {
        return dao;
    }

    @Override
    public void insertTbSlStattaskRunlog(TbSlStattaskRunlog logvo) throws BusinessException {
        ((TbSlStattaskRunlogDao) this.getBaseDao()).insertTbSlStattaskRunlog(logvo);
    }

    @Override
    public TbSlStattaskRunlog queryTbSlStattaskRunlogByJoinid(int joinid) throws BusinessException {
        return ((TbSlStattaskRunlogDao) this.getBaseDao()).queryStattaskRunlogByJoinidanddate(joinid, TimeUtils.getCurDate());  //To change body of implemented methods use File | Settings | File Templates.
    }
}
